
#import "VideoRecorderView.h"

@implementation VideoRecorderView

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
      
        _controlView = [[APVideoRecorderControlView alloc]init];
        [self addSubview:_controlView];
        [_controlView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.bottom.equalTo(self);
            make.height.mas_equalTo(188);
        }];
        
        UIView *viewContainer = [[UIView alloc] init];
        [self addSubview:viewContainer];
        self.viewContainer = viewContainer;
        [viewContainer mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.right.equalTo(self);
            make.bottom.equalTo(_controlView.mas_top);
        }];
        
    }
    return self;
}

@end
